<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //sort原数组改变
        let a = [1, 55, 44, 7, 9]
        a.sort((a, b) => {
            return a - b
        })
        //想要实现多位数正常排序，需要给sort传递一个函数
    </script>
</body>

</html>